package com.hongtu.supplychain.finance.consumer.controller;

import com.hongtu.supplychain.finance.consumer.controller.client.TestClient;
import com.hongtu.supplychain.finance.consumer.replyata.ReplyData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "/hongtu/test",description = "测试接口")
@RequestMapping("/hongtu/test")
public class TestController {

    @Autowired
    private TestClient testClient;

    @ApiOperation(value = "/test", notes = "测试接口")
    @RequestMapping(value = "/test",method = RequestMethod.POST)
    public ReplyData test() {
        return testClient.test();
    }
}
